cmake_minimum_required(VERSION 2.6)

# 工程vscode_cmake
project(project)
add_definitions(-std=c++11)

#dubug 模式
set (CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -g")

#找包
find_package(OpenCV REQUIRED)

#加载源文件
set(SRC_LIST 
main.cpp
Defect.cpp
Product.cpp
)

#引入头文件
include_directories(
    ${OpenCV_INCLUDE_DIRS}
 
)


# 生成可执行程序 result
add_executable(result ${SRC_LIST})

# 链接opecv动态库
target_link_libraries(result ${OpenCV_LIBS} dlib)
